//
//  LRJ_PaintView.h
//  画板录制
//
//  Created by lrj on 2023/3/9.
//

#import <UIKit/UIKit.h>
#import <OpenGLES/EAGL.h>
#import <OpenGLES/ES2/gl.h>
#import <OpenGLES/ES2/glext.h>

NS_ASSUME_NONNULL_BEGIN

@interface LRJ_Point : NSObject

//屏幕上的点（x,y）
@property (nonatomic , strong) NSNumber* mY;
@property (nonatomic , strong) NSNumber* mX;

@end



@interface LRJ_PaintView : UIView
@property (nonatomic, strong) UIImageView *testImage;

//location 最新的点
@property(nonatomic, readwrite) CGPoint location;
//previousLocation 前一个点
@property(nonatomic, readwrite) CGPoint previousLocation;

//清屏
- (void)erase;

//设置画笔颜色
- (void)setBrushColorWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue;

//绘制
- (void)paint;

- (void)clearColor;

@end

NS_ASSUME_NONNULL_END
